<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
        <include file="Public:jquery" />
        <include file="Public:dialog" />
        <include file="Public:startapp" />
        <include file="Public:startmoo" />
        <script type="text/javascript">
            $(function(){
                $("#add_resume").click(function(){
                    var $_type = $(this).attr('rel');
                    var add_resume = art.dialog({
                        title : $(this).text(),
                        lock : true
                    });
                    $.ajax({
                        url : '__URL__/add/type/'+$_type,
                        success : function(e){
                            add_resume.content(e);
                            submitstyle();
                        },
                        cache : false
                    });
                    return false;
                });
            });
        </script>
    </head>
    <body>
        <include file="Public:header" />
        
        <div class="layout">
            
            <include file="Public:position" />
            
            <table class="warp" cellpadding="0" cellspacing="0">
                <tr>
                    <td class="sidebar" valign="top">
                        <include file="Public:sidebar" />
                    </td>
                    <td class="contents" valign="top">
                        
                        <div class="button">
                            <a href="javascript:void(0);" class="default_button" rel="{$type}" id="add_resume"><span></span>新增</a>
                        </div>
				    	
				    	<ul class="act_this">
                            <volist name="type_list" id="types">
                            <li<?php if($types['type'] == $type){ ?> class="this"<?php } ?>><a href="{:U('index',array('tag'=>$_GET['tag'],'type'=>$types['type']))}">{$types.name}</a></li>
                            </volist>
                        </ul>
	                    
                        <div class="a_table">
					    	<table cellspacing="1" width="100%" class="gr_list">
	                            <volist name="resume_list" id="val">
	                            <?php
	                                switch ($type){
	                                    case 'myinfo' :
	                            ?>
	                            <tr>
	                                <td align="right" width="90" class="left_text">{$val.resume_key}</td>
	                                <td align="left">{$val.resume_value}</td>
	                            </tr>
	                            <?php
	                                        break;
	                                    
	                                    case 'exp_work' : 
	                            ?>
	                            <tr>
	                                <td align="right" class="left_text">{$val.title}</td>
	                                <td align="left">{$val.content}</td>
	                                <td align="center">{$val.start_time}</td>
	                                <td align="center">{$val.end_time}</td>
	                            </tr>
	                            <?php
	                                        break;
	                                        
	                                    case 'project' :
	                            ?>
	                            <tr>
	                                <td align="right" class="left_text">{$val.title}</td>
	                                <td align="left">{$val.content}</td>
	                                <td align="center"><a href="{$val.url}" target="_blank">{$val.url}</a></td>
	                            </tr>
	                            <?php
	                                        break;
	                                    
	                                    case 'education' : 
	                            ?>
	                            <tr>
	                                <td align="center" class="left_text">{$val.title}</td>
	                                <td align="center">{$val.start_time}</td>
	                                <td align="center">{$val.end_time}</td>
	                            </tr>
	                            <?php
	                                        break;
	                                        
	                                    case 'skill' : 
	                            ?>
	                            <tr>
	                                <td class="left_text" align="right">{$val.title}</td>
	                                <td class="left_text">{$val.resume_key}</td>
	                                <td align="center">{$val.resume_value}</td>
	                                <td align="center">{$val.content}</td>
	                            </tr>
	                            <?php
	                                        break;
	                                }
	                            ?>
	                            </volist>
	                        </table>
                        </div>
                    </td>
                </tr>
            </table>
        </div>
        
        <include file="Public:footer" />
    </body>
</html>